<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>置顶数据日报</title>
</head>

<style type="text/css">
* {
	font-size: 11px;
}
#table1 {
	border: 1px solid rgb(153, 187, 232);
}
#table1 #table_head {
	background: #B0C9E7; height: 25px; text-align: left; line-height: 25px; text-indent: 20px; font-weight: bolder;
}
#table1 #table_con {
	background: rgb(223, 232, 246);
}
#table1 #table_in {
	background: rgb(208, 208, 208); border: 0px currentColor; margin-top: 5px; margin-bottom: 5px;
}
#table1 #table_in th {
	background: #F0F1F3; height: 22px; border-bottom-color: rgb(208, 208, 208); border-bottom-width: 1px; border-bottom-style: solid; align: center;
}
#table1 #table_in .td1 {
	background: #F0F1F3; height: 22px; text-align: center;border-bottom-color: rgb(208, 208, 208); border-bottom-width: 1px; border-bottom-style: solid; align: center;
}
#table1 #table_in td {
	height: 22px; text-align: center; line-height: 22px; border-bottom-color: rgb(237, 237, 237); border-bottom-width: 1px; border-bottom-style: solid;
}
.tdbg10 {
	background: rgb(238, 239, 241);
}
.tdbg11 {
	background: rgb(255, 255, 255);
}
</style>
<body>
	
#if($productList && $allValuesMap)
    	<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
    		<tr>
    			<td id="table_head">总体数据</td>
    		</tr>
    	   <tr>
            <td id="table_con" valign="top">
                <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
              <tr>
                <th>指标</th>
				
				<th>置顶摊销</th>
                <th>日环比</th>
                <th>周同比</th>
				
				<th>现金摊销</th>
                <th>日环比</th>
                <th>周同比</th>
				
				<th>置顶消费</th>
                <th>日环比</th>
                <th>周同比</th>
				
				<th>现金消费</th>
                <th>日环比</th>
                <th>周同比</th>
				
				<th>在线客户数</th>
                <th>日环比</th>
                <th>周同比</th>
				
				<th>消费客户数</th>
                <th>日环比</th>
                <th>周同比</th>
              </tr>
              
			  #foreach($product in $productList)
				#if($allValuesMap.containsKey($product))
					<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
    					<td class="td1">$product</td>
    					#set($rs = $allValuesMap.get($product))
    					#set($values = $rs.split(';'))	
						#foreach($value in $values)
							<td>$value</td>
						#end	
					
					</tr>
				#end
			  #end
			</table>
			</td>
     	   </tr>
    	</table>
        </br>
        </br>
#end



#if($kpiMap)
<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
	   <tr>
            <td id="table_head">KPI完成进度数据</td>
       </tr>
	   <tr>
        <td id="table_con" valign="top">
            <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
				<tr>
					<th>产品线</th>
                    <th>截止$!{nowDate}本月实际总收入</th>
                    <th>本月目标收入</th>
                    <th>实际进度</th>
					<th>目标进度</th>
					<th>完成剩余任务需每日达成收入</th>
				</tr>
				#foreach($temp in $kpiProcutList)
				#set($product = $temp.split('&')[0])	
				#set($kpi = $kpiMap.get($product))
				
                <tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
				   <td class="td1" >$!{product}</td>
                   <td align="center" >$tools.qfw($!{kpi.monthSumIncome})</td>
				   <td align="center" >$tools.qfw($!{kpi.topkpi})</td>
				   <td align="center" >$tools.tranRateTwo($!{kpi.hasDoneProgress})</td>
				   <td align="center" >$tools.tranRateTwo($!{kpi.tragetProgress})</td>
				   <td align="center" >$tools.qfw($!{kpi.laveDayIncom})</td>
                </tr>
				#end
 			</table>
        </td>
       </tr>
</table>
</br>
</br>
</br>
#end



#if($sortBuyTimeDatas)
<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
	   <tr>
            <td id="table_head">购买时长数据</td>
       </tr>
	   <tr>
        <td id="table_con" valign="top">
            <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
				<tr>
					<th>时长</th>
					
                    <th>实收金额($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>客户数($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
					
					<th>置顶条数($!{nowDate})</th>
                    <th>日环比</th>
                    <th>周同比</th>
				</tr>
				#foreach($rs in $sortBuyTimeDatas)
				
                <tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
				   #set($list = $rs.split(";"))
				   #foreach($value in $list)
    					#if($velocityCount == 1)
    						<td class="td1">
								$value
							</td>
    					#else
    						<td align="center">$value</td>
    					#end
				   #end
                </tr>
				#end
 			</table>
        </td>
       </tr>
</table>
#end



#if($detailValuesMap && $productList)
	#foreach($product in $productList)
	#if($detailValuesMap.containsKey($product))
		#set($rsList = $detailValuesMap.get($product))
		
    	<table width="96%" align="center" cellpadding="0" cellspacing="0" id="table1">
    		<tr>
    			<td id="table_head">$!{product}详细数据</td>
    		</tr>
    	   <tr>
            <td id="table_con" valign="top">
                <table width="99%" align="center" cellpadding="0" cellspacing="1" id="table_in">
              <tr>
                <th>指标</th>
                <th>昨天($nowDate)</th>
                <th>前天($lastDate)</th>
                <th>环比</th>
                <th>上周($lastWeek)</th>
                <th>周同比</th>
              </tr>
              
            	#foreach($rs in $rsList)
            		#set($values = $rs.split(';'))	
            		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
            			<td class="td1">$values[0]</td>
            			<td>$values[1]</td>
            			<td>$values[2]</td>
            			<td>$values[3]%</font></td>
            			<td>$values[4]</td>
            			<td>$values[5]%</font></td>
              		</tr>
            	#end
        	     </table>
     	       </td>
     	   </tr>
    	</table>
        </br>
        </br>
        </br>
    	#end
	#end
#end
	

备注：</br>
1、在线客户数：当天有置顶展示的所有客户（排重）；</br>
2、消费客户数：当天为置顶支付费用的所有客户（排重）；</br>
3、置顶次数：当天有展示的所有置顶推广条数；</br>
4、ARPU1=置顶摊销/在线客户数；</br>
5、ARPU2=置顶消费/消费客户数；</br>
6、置顶单价=置顶摊销/置顶时长；</br>
7、置顶平均条数=置顶展示PV/列表PV；</br>
8、ECPM=置顶摊销*1000/置顶展示PV；</br>
9、CPC=置顶摊销/点击；</br>
10、频道CTR=点击/列表PV；</br>
11、置顶CTR=点击/置顶展示PV；</br>

</body>
</html>
